package com.team5101;

import com.team5101.bootstrap.ClientConsumerBootStrap;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class NettyRpcConsumerClientApplication implements CommandLineRunner {

    @Autowired
    private ClientConsumerBootStrap clientConsumerBootStrap;


    public static void main(String[] args) {
        SpringApplication.run(NettyRpcConsumerClientApplication.class, args);
    }

    @Override
    public void run(String... args) throws Exception {
        clientConsumerBootStrap.start();
    }
}
